package com.wgworkshop.pems.repository;

import com.wgworkshop.pems.entity.HolidayEntity;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * 假期库。
 * Created by wlc on 2017/7/5.
 */
@Repository
public interface HolidayRepository extends CrudRepository<HolidayEntity, Long> {
    Iterable<HolidayEntity> findByNameContaining(String name);

    Iterable<HolidayEntity> findByHolidayBetween(Date start, Date end);
}
